CREATE TABLE [dbo].[Author_Image]
(
[AuthorId] [int] NOT NULL,
[ImageId] [int] NOT NULL
) ON [PRIMARY]
ALTER TABLE [dbo].[Author_Image] ADD 
CONSTRAINT [PK_Author_Image] PRIMARY KEY CLUSTERED  ([AuthorId], [ImageId]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[Author_Image] ADD CONSTRAINT [FK_Author_Image_Author] FOREIGN KEY ([AuthorId]) REFERENCES [dbo].[Author] ([Id])
GO
ALTER TABLE [dbo].[Author_Image] ADD CONSTRAINT [FK_Author_Image_Image] FOREIGN KEY ([ImageId]) REFERENCES [dbo].[Image] ([Id])
GO
